ch := input_list("|RKSN", 0, "", "", "\n\x16\x01\x0e R\x16\x01\x0beset Single Counter / \x16\x01\x0eK\x16\x01\x0bill A Door Counter / \x16\x01\x0eS\x16\x01\x0btart new DATA file / Do \x16\x01\x0eN\x16\x01\x0bothing\n");
if (ch = 'E')
{
confirm := input_list("|YN", 0, "", "", "\x16\x01\x0bKill everything. Are you SURE");
if (confirm = 'Y')
{
remove(DAT_FILE);
fd:= open(DAT_FILE,IOPEN_CREATE);
if (fd = -1)
{
print(COL_WHITE, "Error creating data file!\n\n");
menu_cmd(106,"");
}
close(fd);
}
}
if (ch = 'R')
{
input_str(tagno, INPUT_NLB_LINE, 0, 2, "Enter Door TagNumber");
i := strtoi(tagno);
doordata := dc[i];
confirm := input_list("|YN", 0, "", "", "\x16\x01\x0bReset counter. Are you SURE");
if (confirm = 'Y')
{
readdata(doordata);
writedata(doordata);
}
}
if (ch = 'K')
{
input_str(tagno, INPUT_NLB_LINE, 0, 2, "Enter Door TagNumber");
i := strtoi(tagno);
doordata := dc[i];
confirm := input_list("|YN", 0, "", "", "\x16\x01\x0bKill entry. Are you SURE");